-- GENERATED SPELL FOR [Steward] --


function spell0_26729(pUnit, Event) --@Arcane Torrent,Self--
pUnit:FullCastSpellOnTarget(47779,pUnit)
pUnit:RegisterEvent('Sorts_26729', 4332, 1)
end

function spell1_26729(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(47780,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26729', 550, 1)
end

function Sorts_26729(pUnit, Event)
local choix_sorts_26729 = math.random(0, 1)
if choix_sorts_26729 == 0 then
pUnit:RegisterEvent('spell0_26729', 1, 1)
end
if choix_sorts_26729 == 1 then
pUnit:RegisterEvent('spell1_26729', 1, 1)
end
end

function mob26729_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26729', math.random(1500, 3000), 1)
end

function mob26729_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26729_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26729_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26729, 1, 'mob26729_Action')
RegisterUnitEvent(26729, 2, 'mob26729_Leave')
RegisterUnitEvent(26729, 3, 'mob26729_Kill')
RegisterUnitEvent(26729, 4, 'mob26729_Die')
